package com.itheima.date;

import java.text.SimpleDateFormat;
import java.text.ParseException;
import java.util.Date;

public class date02 {
    public static void main(String[] args) throws ParseException {
String s="2020-11-11";
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
Date date=sdf.parse(s);
        System.out.println(date);
    }
}
